package com.hs.mobile.service.icon;

import java.util.List;

import com.hs.mobile.model.Icon;
import com.hs.mobile.dao.icon.IconDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("iconsService")
public class IconServiceImpl implements IconService {

	@Autowired
	IconDAO iconDAO;
	
	public void setIconDAO ( IconDAO iconDAO  )
	{
		this.iconDAO = iconDAO;
	}
	
	public IconDAO getIconDAO()
	{
		return iconDAO;
	}
	
	@Override
	public void save(Icon icon) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Icon icon) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(long id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Icon findIconById(long id) {
		// TODO Auto-generated method stub
		return iconDAO.findByIconId(id);
	}

	@Override
	public List<Icon> getAllIcons() {
		// TODO Auto-generated method stub
		return iconDAO.getListAll();
	}

}
